/**
 * @File AppointmentDaoImpl.java
 * Date			Author		Changes
 * -------		--------	--------
 * Jun 7, 2011		Vijay Rajan		Created
 * 
 **/
package com.vh.dao.hibernate;

import java.sql.Date;
import java.util.List;

import org.appfuse.dao.hibernate.GenericDaoHibernate;
import org.springframework.stereotype.Repository;

import com.vh.dao.AppointmentDao;
import com.vh.model.Appointment;

/**
 * @author Vijay Rajan
 *
 */
@Repository("AppointmentDao")
public class AppointmentDaoHibernate extends GenericDaoHibernate<Appointment, Long> implements AppointmentDao {

	public AppointmentDaoHibernate() {
		super(Appointment.class);
	}

	@SuppressWarnings("unchecked")
	public List<Appointment> findAppointment(Date dtStart, Date dtEnd) {
        return getHibernateTemplate().find("from Appointment where appDate between ? and ?", dtStart, dtEnd);
	}
	
}
